/* 新增的用户信息区样式 */
.user-info-area {
  padding: 20rpx 30rpx 0;
  color: white;
  background: url("/static/images/heart.png") no-repeat right center;
  background-size: contain;
  background-position: right center;

  .user-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;

    .user-name {
      font-size: 60rpx;
      font-weight: bold;
    }

    .user-action-buttons {
      display: flex;
      gap: 20rpx;

      .action-button {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 30rpx;
        padding: 10rpx 20rpx;
        display: flex;
        align-items: center;
        gap: 6rpx;

        .action-icon {
          width: 28rpx;
          height: 28rpx;
          margin-right: 4rpx;
        }

        .action-text {
          font-size: 24rpx;
          color: white;
        }
      }
    }
  }

  .celestial-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    .celestial-stems-branches {
      display: flex;
      flex-wrap: wrap;
      width: 50%;

      .celestial-item {
        width: 50%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8rpx;
        padding: 20rpx;
        font-size: 28rpx;
      }

      .celestial-icon {
        width: 40rpx;
        height: 40rpx;
        background-color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #dd302c;
        font-weight: bold;
      }

      .celestial-text {
        color: white;
      }
    }
  }
}

/* 功能卡片区样式 */
.function-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20rpx;
  padding: 0 30rpx 20rpx;

  .function-card {
    background: linear-gradient(to bottom, #f5c3c6 0%, #fcebea 25%);
    border-radius: 16rpx;
    padding: 16rpx 20rpx;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);

    .card-header {
      display: flex;
      align-items: center;
      gap: 10rpx;
      margin-bottom: 10rpx;
    }

    .card-title {
      font-size: 30rpx;
      color: #502108;
      font-weight: bold;
    }

    .card-content {
      padding: 6rpx 0 0 26rpx;
    }

    .card-text {
      font-size: 26rpx;
      color: #333333;
      line-height: 1.4;
    }
  }
}

.info-content {
  padding: 50rpx 40rpx 20rpx;
  border-radius: 16rpx;
  max-height: 250px;
  overflow-y: hidden;
  position: relative;
}

// 功能介绍区域
.feature-section {
  width: 100%;
  background-color: #fff;
  border-radius: 16rpx;
  padding: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  text-align: center;

  .feature-title {
    display: flex;
    align-items: center;
    font-size: 32rpx;
    color: #333;
    text-align: left;
    margin-bottom: 30rpx;
    font-weight: bold;
    &::before {
      content: "";
      display: inline-block;
      width: 20px;
      height: 20px;
      background-image: url("/static/images/icon-fate.png");
      background-size: contain;
      background-repeat: no-repeat;
      margin-right: 8px;
    }
  }

  /* 婚姻透视section样式 */
  .insight-layout {
    width: 100%;
    display: flex;

    .tabs-row {
      display: flex;
      justify-content: space-between;
    }

    .tabs-container {
      width: 60%;

      .tab {
        font-size: 13px;
        color: #3a3939;
        cursor: pointer;
        position: relative;

        &.active {
          color: #de3531;
        }
      }

      .chart-container {
        margin-top: 20px;

        .line-chart {
          width: 100%;
        }
      }
    }

    .ai-person-container {
      width: 40%;

      .ai-person {
        width: 360rpx;
        height: 360rpx;
      }
    }
  }

  .price-section {
    width: 100%;
    text-align: center;
    margin: 20rpx 0;
  }

  .price-wrapper {
    display: inline-flex;
    align-items: baseline;
  }

  .original-price {
    font-size: 32rpx;
    color: #999;
    text-decoration: line-through;
    margin-right: 20rpx;
  }

  .current-price {
    font-size: 40rpx;
    color: #dd302c;
    font-weight: bold;
  }
  .pay-button {
    background-image: linear-gradient(#eb6b52 0%, #df3a32 50%);
    color: white;
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 10px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    &::before {
      content: "";
      display: inline-block;
      width: 20px;
      height: 20px;
      background-image: url("/static/images/wechat-pay.png");
      background-size: contain;
      background-repeat: no-repeat;
      margin-right: 8px;
    }

    .button-text {
      font-size: 16px;
      font-weight: 500;
      color: white;
    }
  }

  .discount-timer {
    color: #dd302c;
    font-size: 28rpx;
    text-align: center;
    margin-bottom: 20rpx;
  }

  .otherComp-image {
    image {
      width: 600rpx;
      height: 120rpx;
    }
  }
  .messageText {
    font-size: 24rpx;
    color: #333;
    text-align: center;
    margin-bottom: 10rpx;
  }
}
.transition-image {
  image {
    width: 100%;
    height: 160rpx;
  }
}



 /* 基本信息卡片样式 */
.info-table {
  width: 100%;
  background: #fff;
  border-radius: 12rpx;
  border-collapse: collapse;

  th,
  td {
    padding: 16rpx;
    text-align: center;
    border: 1px solid #ffebdc;
  }

  th {
    font-size: 28rpx;
    color: #603732;
    font-weight: bold;
  }

  td {
    font-size: 28rpx;
    color: #666;
  }

  &.pattern-table {
    th,
    td {
      width: 16.66%; // 平均分配6列宽度
    }
  }

  &.order-table {
    td {
      &:first-child {
        color: #666;
        text-align: left;
      }
      &:last-child {
        color: #dd302c;
      }
    }
  }

  .date-container {
    .date-row {
      text-align: center;
      font-size: 24rpx;
      color: #666;
      line-height: 1.5;

      &:last-child {
        margin-top: 8rpx;
      }
    }
  }
}
//订单列表
.order-list-container {
  animation: infiniteScroll 10s linear infinite;
  .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16rpx 0;
    color: #6e4d43;
    font-size: 30rpx;
    border-bottom: 1px dashed #ffebdc;

    &:last-of-type {
      border-bottom: none;
    }
  }
  &:hover {
    animation-play-state: paused;
  }
  @keyframes infiniteScroll {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }
}

.pattern-desc {
  font-size: 28rpx;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20rpx;
}


// 功能列表
.feature-box {
  padding: 50rpx 40rpx 20rpx;
  border-radius: 16rpx;
  position: relative;
}
.feature-content-bg {
  .feature-content-item {
    padding: 15px;
    border: solid 1px pink;
    border-radius: 15px;
    margin-bottom: 15px;
    background: #fffcfa;
    line-height: 1.7;
  }
}
.feature-list {
  position: absolute;
  top: 1%;
  left: 0;
  width: 100%;
  height: calc(100% - 25px);
  z-index: 2;
  padding: 10% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  .feature-item {
    width: 100%;
    position: relative;
    display: flex;
    border-radius: 6px;
    margin-bottom: 10px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;

    .feature-title {
      position: absolute;
      top: -50rpx;
      background: #dd302c;
      color: #fff;
      font-size: 28rpx;
      padding: 16rpx 20rpx;
      border-bottom: 2rpx solid #ffebdc;
      border-radius: 10rpx;
      z-index: 2;
    }
  }
  .feature-content {
    width: 100%;
    background: #fff;
    color: #333;
    font-size: 12px;
    line-height: 1.6;
    padding: 15px 10px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #e04946;
    border-radius: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60%;
      pointer-events: none;
    }
  }
}

// 底部信息样式
.footer-info {
  background-color: #f3f5f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rpx;
  color: #aaabab;
  padding-top: 20rpx;

  .slogan {
    font-size: 36rpx;
    font-weight: 500;
    color: #dd3430;
  }

  .sub-text {
    font-size: 24rpx;
    text-align: center;
  }

  .copyright {
    font-size: 24rpx;
  }
}

// 支付按钮样式
.pay-button {
  width: 90%;
  height: 88rpx;
  background: #dd302c;
  color: #fff;
  border-radius: 44rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  font-weight: 500;
  margin: 20rpx auto;
  box-shadow: 0 4rpx 8rpx rgba(221, 48, 44, 0.2);

  .button-text {
    color: #fff;
  }
}

.footer-button {
  width: 100%;
  height: 44px;
  background: #dd302c;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

// 固定底部按钮样式
.fixed-button {
  position: fixed;
  bottom: 40rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 88rpx;
  background: #dd302c;
  color: #fff;
  border-radius: 44rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  font-weight: 500;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 4rpx 8rpx rgba(221, 48, 44, 0.2);

  &.hidden {
    opacity: 0;
    transform: translate(-50%, 100rpx);
    pointer-events: none;
  }
}
